package com.jzo2o.customer.controller.worker;

import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.model.dto.response.WorkerCertificationAuditPageQueryResDTO;
import com.jzo2o.customer.service.IWorkerCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @Description WorkerAuthenticationController
 * @Author dmx
 * @Date 2024-12-03
 */
@RestController("workerAuthenticationController")
@RequestMapping("/worker/worker-certification-audit")
@Api(tags = "服务端 - 提交认证接口")
public class WorkerAuthenticationController {


    @Autowired
    private IWorkerCertificationService workerCertificationService;

    /**
     * 服务端提交认证申请
     * @param dto
     */
    @PostMapping
    @ApiOperation("服务端提交认证申请")
    public void workerSubmitAAuthentication(@RequestBody WorkerCertificationAuditAddReqDTO dto){
        workerCertificationService.workerSubmitAAuthentication(dto);
    }


    /**
     * 查询最新驳回原因
     * @return
     */
    @GetMapping("/rejectReason")
    @ApiOperation("查询最新驳回原因")
    public Map<String,String> getRejectReason(){
        return workerCertificationService.getRejectReason();
    }





}
